﻿
<div class="main-right">
	<div class="main-right-header">
    	<p class="now-nav">您现在操作的是：<span>文章管理</span></p>
   	</div>
    <div class="blank1"></div>
    <!-- *************************************每个连接实现的内容***************************************** -->
              
              
             <div class="content">
                 <div class="message">
             	    <ul style="border:0px; ">
             	        <li>
             		        <?php  echo $this->message->all(); ?>
             		    </li>
             		</ul>
             	 </div>
                 <form action ="<?php echo site_url('manage/article/update/') ?>" method="post" >
              	     <table class="article-table">

                        <tr>
                           <td style="width:100px; ">所属语言：</td>
                           <td>
                               <select name="language">
                                          <option>请选择所属语言</option>
                                          <?php 
                                          foreach($language_list as $language_row){
                                            	if($language_row['code'] == $article_row['language']){
                                          ?>
                                     	        <option selected> <?php echo $language_row['code'];  ?></option>    
                                               <?php 
                                     	        }
                                     	        else{
                                               ?>
                                               <option> <?php echo $language_row['code'];  ?></option>  
                                               <?php 		
                                     	        }
                                          }
                                          ?>
                               </select>
                            </td>

    <div class="content">
    	<div class="message">
        	<ul style="border:0px; ">
            	<li>
             		<?php  echo $this->message->all(); ?>
             	</li>
            </ul>
       	</div>
        
        <form action ="<?php echo site_url('manage/article/update/') ?>" method="post" >
        	<table class="article-table">
            	<tr>
                	<td style="width:100px; ">所属语言：</td>
                    <td>
                    	<select name="language">
						<?php 
                        	foreach($language_list as $language_row) {
                            	if($language_row['id'] == $article_row['language']){
                        ?>
                        			<option selected> <?php echo $language_row['name'];  ?></option>    
                        <?php 
                        		} else {
                        ?>
									<option> <?php echo $language_row['name'];  ?></option>  
                        <?php 		
                        		}
                            }
                       	?>
                        </select>
					</td>
               	</tr>
                <tr>
                    <td>url_pattern：</td>
                    <td>
                    	<input type="hidden" name="id" value="<?php echo $article['id'];  ?>" />
                        <input type="text" name="url_pattern"  value="<?php  echo $article['url_pattern'];  ?>"/>
                    </td>
>>>>>>> .r15
                        </tr>
                        <tr>
<<<<<<< .mine
                             <td>文章标题：</td><td><input type="text" name="title" value="<?php  echo $article_row['title']; ?>"/></td>
                         </tr>
                         <tr>
                             <td>文章名称：</td><td><input type="text" name="name" value="<?php  echo $article_row['name']; ?>"/></td>
                         </tr>
                        <tr>
                            <td>url_pattern：</td>
                            <td>
                                <input type="hidden" name="id" value="<?php echo $article_row['id'];  ?>" />
                                <input type="text" name="url_pattern"  value="<?php  echo $article_row['url_pattern'];  ?>"/>
                            </td>
                        </tr>
                        <tr>
=======
>>>>>>> .r15
                            <td>关键字描述：</td>
<<<<<<< .mine
                            <td><input type="text" name="keywords"  value="<?php  echo $article_row['keywords']; ?>"/></td>
=======
                            <td><input type="text" name="words"  value="<?php  echo $article['words']; ?>"/></td>
>>>>>>> .r15
                        </tr>
                        <tr>
                             <td>描述：</td>
                             <td><input type="text" name="description" value="<?php echo $article['description']; ?>"/></td>
                        </tr>
<<<<<<< .mine
=======
                        <tr>
                             <td>文章标题：</td><td><input type="text" name="title" value="<?php  echo $article['title']; ?>"/></td>
                         </tr>
>>>>>>> .r15
                         <tr>
                             <td>文章摘要：</td>
                             <td colspan="2"><textarea cols="60" rows="3" name="summary"><?php echo $article['summary']; ?></textarea></td>
                         </tr>
                         <tr>
                             <td>文章的内容：</td>
                             <td><textarea cols="60" rows="5" name="content" ><?php echo $article['content']; ?></textarea></td>
                         </tr>
              		     <tr>
              		     	 <td>&nbsp;</td>
              		         <td>
              		          	<input type="submit" name="submit-article" value="确认修改"/>
              		         </td>
              		     </tr>
              	    </table>   
              </form>
          </div>
              
                       
         </div>

    
    
